package com.xingdian.xingdianhulianweb.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class RequestController {

    @RequestMapping("/")
    public String ok3(){
        return "index";
    }

    @RequestMapping("/Brand/Intro")
    public String ok1(){
        return "intro";
    }

    @RequestMapping("/Brand")
    public String ok2(){
        return "intro";
    }

    @RequestMapping("/Brand/History")
    public String ok4(){
        return "brand_history";
    }

    @RequestMapping("/Product")
    public String product1(String Node){
        if(Node==null||Node.equals("200900100")){
            return "product1";
        }
        if(Node.equals("200900200")){
            return "product2";
        }
        if(Node.equals("200900400")){
            return "product3";
        }
        if(Node.equals("200900500")){
            return "product4";
        }
        return "product1";
    }

    @RequestMapping("/Shop")
    public String shop1(){
        return "map";
    }

    @RequestMapping("/Map")
    public String shop2(){
        return "map";
    }

    @RequestMapping("/Shop/Stroe")
    public String shop3(){
        return "store";
    }

    @RequestMapping("/Contact")
    public String contact(){
        return "contact";
    }

}
